import React from 'react';
import '../../style/fileItem.less';

/*
* 参数属性：
* onClick
*
* */

class WeaDocFileAdd extends React.Component {
   static defaultProps = {
      onClick: null,
   };

   render() {
      const { onClick, className, style } = this.props;
      typeof onClick === 'function' ? onClick : null;

      return (
         <div className={`WeaDoc-FileAddItem${className ? ` ${className}` : ''}`} style={style} onClick={onClick}>
            <div className="WeaDoc-Main WeaDoc-AddMain">
               <i className="WeaDoc-addIcon anticon anticon-plus" />
            </div>
         </div>
      );
   }
}

export default WeaDocFileAdd;

